import re

text = "hello world 123"
new_text = re.sub(r"\d+", "number", text)
print(new_text)